#pragma once

#if !defined(_MKTRIANGLE_H_)
#define _MKTRIANGLE_H_

#include "MKdef.h"
#include "MKVertex.h"

class MK_API MKTriangle
{
public:
    static MKTriangle* Create();
    void Destroy();

    void Sort();

    bool operator==(const MKTriangle& tri) const;
    bool operator!=(const MKTriangle& tri) const;
    bool operator<(const MKTriangle& tri) const;
    bool operator<=(const MKTriangle& tri) const;
    bool operator>(const MKTriangle& tri) const;
    bool operator>=(const MKTriangle& tri) const;
public:
    MKVertex* A = nullptr;
    MKVertex* B = nullptr;
    MKVertex* C = nullptr;
protected:
    MKTriangle();
    virtual ~MKTriangle();
};

#endif